﻿    using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ChoDev
{
    public static class Tracker
    {
        public static void Log(string MessageLog)
        {
            string date = DateTime.Now.ToShortDateString();
            string fileName = String.Format(@"C:\{0}.nel", date);
            using (StreamWriter writer = new StreamWriter(fileName, true))
            {
                string time = DateTime.Now.ToShortTimeString();
                string message = time + "\t" + MessageLog;
                writer.Flush();
                writer.WriteLine(message);
                writer.Close();
            }
        }
    }
}
